let baseUrl="https://meituan.thexxdd.cn/api"
function request (params) {
	uni.showLoading({
		title:"加载中"
	})
	let token=uni.getStorageSync('token')||''
	console.log(token);
return	new Promise((resolve,rejact)=>{
		uni.request({
			...params,
			url:baseUrl+params.url,
			header:{
				Authorization:'Basic '+token
			},
			success: (res) => {
				resolve(res)
				uni.hideLoading()
			},
			fail: (err) => {
				rejact(err)
			}
		})
	})
}
export default request